package hhq.demo.utils;

public class FileUtil {
    public static String clearNotGood(String filename) {
        filename = filename.replace("/", "");
        filename = filename.replace("<", "");
        filename = filename.replace(">", "");
        filename = filename.replace("\\", "");
        filename = filename.replace("|", "");
        filename = filename.replace(":", "");
        filename = filename.replace("\"", "");
        filename = filename.replace("*", "");
        filename = filename.replace("?", "");
        filename = filename.replace(" ", "_");
        filename = filename.replace("+", "_");
        return filename;
    }
}
